Skip to content

Conversation

@ariane-emory
Copy link
Contributor

The args .fail() handler was only checking for specific argument errors and silently exiting for all other errors, including invalid config keys. This change re-throws errors so they're caught by the outer error handling logic that properly formats and displays them to users.

What does this PR do?

Instead of silently terminating when run using bun dev, OpenCode will report errors in the configuration file.

How did you verify your code works?

A/B testing.

The yargs .fail() handler was only checking for specific argument errors and
silently exiting for all other errors, including invalid config keys.
This change re-throws errors so they're caught by the outer error handling
logic that properly formats and displays them to users.
@ariane-emory ariane-emory marked this pull request as ready for review January 9, 2026 20:11
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node rekram1-node merged commit 75df504 into anomalyco:dev Jan 9, 2026
4 checks passed
aryasaatvik pushed a commit to aryasaatvik/opencode that referenced this pull request Jan 10, 2026
fwang pushed a commit to lifefloating/opencode that referenced this pull request Jan 10, 2026
zerone0x pushed a commit to zerone0x/opencode that referenced this pull request Jan 12, 2026
zerone0x pushed a commit to zerone0x/opencode that referenced this pull request Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants